if (WIN32)
	if(MSVC)
		add_definitions(  -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE)
	else(MSVC)
        add_definitions(-DBOOST_ALL_NO_LIB)
		add_definitions( -DBOOST_ASIO_DISABLE_IOCP -D__USE_W32_SOCKETS )
	endif(MSVC)
else (WIN32)
endif (WIN32)


FILE(GLOB _H "*.h")
FILE(GLOB _CPP "*.cpp")

add_executable (main
    ${_H}
	${_CPP}
    )
	
target_link_libraries( main debug network_d)
target_link_libraries( main optimized network )

if(ANDROID_NDK)
    #target_link_libraries( main )
endif(ANDROID_NDK)


#SET_RUNTIME_LINK(STATIC)

SET_TARGET_PROPERTIES( main PROPERTIES RELEASE_OUTPUT_NAME "main")
if (MSVC)
SET_TARGET_PROPERTIES( main PROPERTIES DEBUG_OUTPUT_NAME "main_d")
else(MSVC)
SET_TARGET_PROPERTIES( main PROPERTIES DEBUG_OUTPUT_NAME "main_d")
endif(MSVC)
